clc
% X = 0.5 Y = 1 Z = 0.3
eul = [0.3 1 0.5];
quat = eul2quat(eul,'ZYX');
disp('quaternion = [W X Y Z]');
disp(quat);